package com.wl.shop.service;

import com.wl.shop.entity.Category;

import java.util.Map;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wangl
 * @since 2017-05-24
 */
public interface CategoryService extends IService<Category> {
	
	public int getMaxSort(String parentId); 
	
	public void saveOrUpdate(Category category);
	
	public void delete(String id);
	
	public Category selectCategoryByParam(Map<String,Object> map);
	
	/**
	 * 测试用例
	 * @param parentId
	 * @param page
	 * @return
	 */
	public Page<Category> test(String parentId,Page<Category> page); 
}
